]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Always use floating layout for fade transition
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 11 Jul 2020 15:38:04 +0000 (17:38 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 13 Jul 2020 17:24:43 +0000 (17:24 +0000)
We don't animate size and position when fading, so we want all previews
to already be at their final position. However when the app picker is
opened from within the overview, window previews use the zoomed layout,
so that's the state we are then fading when leaving the overview from
the app picker.

Fix that by setting the correct state at the start of the fade transition.

(In the case of fadeToOverview(), the value should always be correct
already, but set it anyway for symmetry with fadeFromOverview())

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969

js/ui/workspace.js

index 12c4a39bef01c9b32ece7775402dd6b01b9e673a..bbf61da33c4c15594492626c4917279d7a8c208c 100644 (file)
@@ -1027,6 +1027,8 @@ class Workspace extends St.Widget {
         if (this.metaWorkspace !== null && !this.metaWorkspace.active)
             return;
 
+        this.layout_manager.stateAdjustment.value = 0;
+
         // Special case maximized windows, since it doesn't make sense
         // to animate windows below in the stack
         let topMaximizedWindow;
@@ -1079,6 +1081,8 @@ class Workspace extends St.Widget {
         if (this.metaWorkspace !== null && !this.metaWorkspace.active)
             return;
 
+        this.layout_manager.stateAdjustment.value = 0;
+
         // Special case maximized windows, since it doesn't make sense
         // to animate windows below in the stack
         let topMaximizedWindow;